#include "pickingcolormanager.h"

PickingColorManager pcm;

PickingColorManager::PickingColorManager(){
    pickingColor[0] = 0;
	pickingColor[1] = 0;
	pickingColor[2] = 0;
}

unsigned int* PickingColorManager::GetUniqueColor(){
	pickingColor[0] += 1;
	if(pickingColor[0] > 255){
		pickingColor[0] = 1;
		pickingColor[1] += 1;
	}
	if(pickingColor[1] > 255){
		pickingColor[1] = 1;
		pickingColor[2] += 1;
	}
	if(pickingColor[2] > 255){
		while(true){
			std::cout << "Oh shit! ";
		}
	}
	return pickingColor;
}

unsigned int PickingColorManager::GetCurrentColorAsInt(){
    return pickingColor[0]+pickingColor[1]*256+pickingColor[2]*65536;
}
